/*package com.dshore.messagecenter.login;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;


@Service
public class LoginAopService extends HandlerInterceptorAdapter{
//	 @Autowired
//		/*UALoginConnector uALoginConnector;*/
//	 
//	@Override
//	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
//			throws Exception {
//		/*boolean flag=true;
//		SsoUserInfo sso=uALoginConnector.getUserFromRequest(request);
//		if(sso!=null&&!StringUtils.isEmpty(sso.getLoginName())) {
//			
//		}else {
//			response.setCharacterEncoding("GBK");
//			response.setHeader("contentType", "text/html;charset=gbk");
//			PrintWriter pw=response.getWriter();
//			pw.write("{msg:无权限}");
//			pw.flush();
//			pw.close();
//			flag=false;
//		}
//		
//		return flag;*/
//		return false;
//	}
	
//}
